//
//  ZYModeSelectView.h
//  YiLin
//
//  Created by Zyark on 2018/6/4.
//  Copyright © 2018年 Zyark. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ZYDevice;
@class ZYModeTypeModel;
@class ZYModeSelectView;
@protocol ZYModeSelectViewDelegate <NSObject>
@optional
/**
 模式选择
 @param modeSelectView 当前view
 @param modeType 选中的模式
 */
-(void)modeSelectView:(ZYModeSelectView *)modeSelectView setModeType:(NSUInteger)modeType;

@end
@interface ZYModeSelectView : UIView
@property(nonatomic,assign)CGFloat realHeight;
@property(nonatomic,weak) id<ZYModeSelectViewDelegate> delegate;
-(instancetype)initWithFrame:(CGRect)frame modelArray:(NSArray<ZYModeTypeModel *> *)modelArray;
-(instancetype)initWithFrame:(CGRect)frame deviceType:(ZYDeviceType)deviceType;

/**
 初始化按钮标题
 */
-(void)setupTitle;

/**
 显示或关闭
 */
-(void)showOrHidden;

/**
 关闭
 */
-(void)close;
@end
